package lcy.homework05.lambdaTest;

import java.util.Date;

/**
 * @ClassName: Student
 * @Description:
 * @author: 李春洋
 * @date: 2024/4/18 16:29
 * @Blog: https://
 */
public class Student extends Person {
    private String major;

    public Student(String name, String identityNo, Date birthDay, String major) {
        super(name, identityNo, birthDay);
        this.major = major;
    }

    public String getMajor() {
        return major;
    }

    @Override
    public String toString() {
        return super.toString() + "[major=" + major + "]";
    }

}
